﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/User.Master" AutoEventWireup="true" CodeBehind="CGDMX.aspx.cs" Inherits="CoolERP_Web.User.CGDMX" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../Scripts/lhgdialog/lhgcore.min.js" type="text/javascript"></script>
<script type="text/javascript">
    var DG = frameElement.lhgDG;
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td class=tbHead_L></td>
        <td class=tbHead_M><div><b>采购单编号：<asp:Literal ID="liBH" runat=server/></b></div></td>
        <td class=tbHead_R></td>
    </tr>
    <tr>
        <td class=tbBody_L></td>
        <td class=tbBody_M>
            <ul class=tags style="width:100%;">
                <li class=liTitle><div>详细信息</div></li>
                <li class=liRight>状态：<asp:Label ID="liZT" runat=server ForeColor=Red/></li>
            </ul>
            <table class="grvCSS" cellspacing=0 cellpadding=5 border=1 style="width:100%;border-collapse:collapse;">
                <tr>
                    <td style="text-align:right; width:13%">供应商：</td><td style="text-align:left; width:20%"><asp:Literal ID="liGYS" runat=server/></td>
                    <td style="text-align:right">采购时间：</td><td style="text-align:left"><asp:Literal ID="liRQ" runat=server/></td>
                    <td style="text-align:right">计划到货时间：</td><td style="text-align:left"><asp:Literal ID="liDHSJ" runat=server/></td>
                
                </tr>
                <tr>
                    <td style="text-align:right">采购部门：</td><td style="text-align:left"><asp:Literal ID="liBMMC" runat=server/></td>
                    <td style="text-align:right">采购人员：</td><td style="text-align:left"><asp:Literal ID="liRYMC" runat=server/></td>
                    <td style="text-align:right">操作人员：</td><td style="text-align:left"><asp:Literal ID="liCZRYName" runat=server/></td>

                </tr>
            </table>
            <ul class=tags style="width:100%;">
                <li class=liTitle><div>明细列表</div></li>
                <li class=liRight>总计金额：<asp:Label ID="liMoney" runat=server ForeColor=Red/><asp:Literal ID="liHB" runat=server/></li>
            </ul>
            <asp:GridView ID="GridView1" runat="server" Width=100% PageSize=1000 ClientIDMode=Static CssClass="grvCSS" AutoGenerateColumns="False" AllowPaging="True">
                <Columns>
                    <asp:TemplateField HeaderText="序号">
                        <ItemTemplate><%# Container.DataItemIndex + 1 %></ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="物料编号" DataField="BH"/>
                    <asp:BoundField HeaderText="物料名称" DataField="MC"/>
                    <asp:BoundField HeaderText="物料规格" DataField="GG"/>
                    <asp:BoundField HeaderText="颜色" DataField="YS"/>
                    <asp:BoundField HeaderText="单位" DataField="DWMC"/>
                    <asp:BoundField HeaderText="单价" DataField="DJ" DataFormatString="{0:C}"/>
                    <asp:BoundField HeaderText="数量" DataField="SL"/>
                    <asp:TemplateField HeaderText="金额">
                        <ItemTemplate><%# (Convert.ToDecimal(Eval("DJ")) * Convert.ToDecimal(Eval("SL"))).ToString("C")%></ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerSettings Visible=false />
            </asp:GridView>
            <div style="text-align:center; margin:10px"><input type=image src="../Images/Common/btn_close.png" onclick="DG.cancel();" /></div>
        </td>
        <td class=tbBody_R></td>
    </tr>
    <tr>
        <td class=tbFoot_L></td>
        <td class=tbFoot_M></td>
        <td class=tbFoot_R></td>
    </tr>
</table>
</asp:Content>

